package com.xiaoma.eventpublish;

import org.springframework.context.ApplicationEvent;

public class BusinessEvent extends ApplicationEvent {

    //事件的类型
    private String type;
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public BusinessEvent(Object source,String type) {
        super(source);
        this.type=type;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }

}
